﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Heavy_Metals
{
    public partial class LSYC : Form
    {
        public LSYC()
        {
            InitializeComponent();
        }

        private void LSYC_Load(object sender, EventArgs e)
        {
            this.dataGridView1.Columns.Add("模型名称", "模型名称");
            this.dataGridView1.Columns.Add("污染物名称", "污染物名称");
            this.dataGridView1.Columns.Add("泄漏量", "泄漏量(kg)");
            this.dataGridView1.Columns.Add("风险源名称", "风险源名称");
            this.dataGridView1.Columns.Add("模拟上段面", "模拟上段面");
            this.dataGridView1.Columns.Add("模拟下断面", "模拟下断面");
            this.dataGridView1.Columns.Add("流量", "流量(m³/s)");
            this.dataGridView1.Columns.Add("模拟误差", "模拟误差(%)");
            this.dataGridView1.Columns.Add("污染事件", "污染事件");
            this.dataGridView1.Columns.Add("预测时间", "预测时间");
            this.dataGridView1.Rows.Add("TABS-MB", "硝基苯", "10000", "", "朱顺屯", "巴彦港", "900", "5", "硝基苯污染事件", "2012.2.4");
            this.dataGridView1.Rows.Add("ARIMA", "砷", "5000", "", "鸡西", "松花江", "", "7", "松花江污染事件", "2011.4.5");
        }

        private void button1_Click(object sender, EventArgs e)
        {
            this.textBox1.Text = "";
            this.textBox2.Text = "";
        }

        private void button2_Click(object sender, EventArgs e)
        {
            this.dataGridView1.Rows.Clear();
            this.dataGridView1.Rows.Add("TABS-MB", "硝基苯", "10000", "", "朱顺屯", "巴彦港", "900", "5", "硝基苯污染事件", "2012.2.4");
        }
    }
}
